cat a.txt | tr -s ' ' | tr 'A-Z' 'a-z'| tr ' ' '\n' |sort -i>a1.txt
cat b.txt | sort -i>b1.txt
comm a1.txt b1.txt -2 -3





